package com.ruoyi.project.erp.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

@Data
public class WorklogApprovalVO {
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 工时ID */
    @Excel(name = "工时ID")
    private Long worklogId;

    /** 审批层级（1=主管，2=销售） */
    @Excel(name = "审批层级", readConverterExp = "1==主管，2=销售")
    private Long step;

    /** 审批人ID */
    @Excel(name = "审批人ID")
    private String approverId;
    @Excel(name = "审批人")
    private String approver;
    /** 状态(pending, approved, rejected, returned) */
    @Excel(name = "状态(pending, approved, rejected, returned)")
    private String status;

    /** 审批时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审批时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date approveTime;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String approveRemark;
}
